const pathSep = require('path').sep;
const fs=require("fs");
const moduleMapDir = "multibundler";
const getModuleId = require('./multibundler/getModulelId').getModuleId;
let entry = "platform.js";//打包的入口

function createModuleIdFactory() {
    const projectRootPath = __dirname;//获取当前目录，__dirname是nodejs提供的变量
    return path => {
      let name = getModuleId(projectRootPath,path,entry,false);
      return name;
    };
}


module.exports = {

    serializer: {
      createModuleIdFactory:createModuleIdFactory,
        /* serializer options */
    }
};
